3.255 \(\int \frac {(a+a \sin (e+f x))^2 (A+B \sin (e+f x))}{c+d \sin (e+f x)} \, dx\)
Optimal. Leaf size=171 \[ -\frac {2 a^2 (c-d)^2 (B c-A d) \tan ^{-1}\left (\frac {c \tan \left (\frac {1}{2} (e+f x)\right )+d}{\sqrt {c^2-d^2}}\right )}{d^3 f \sqrt {c^2-d^2}}-\frac {a^2 x \left (2 A d (c-2 d)-B \left (2 c^2-4 c d+3 d^2\right )\right )}{2 d^3}+\frac {a^2 (-2 A d+2 B c-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2 \sin (e+f x)+a^2\right )}{2 d f} \]
[Out]
-1/2*a^2*(2*A*(c-2*d)*d-B*(2*c^2-4*c*d+3*d^2))*x/d^3+1/2*a^2*(-2*A*d+2*B*c-3*B*d)*cos(f*x+e)/d^2/f-1/2*B*cos(f
*x+e)*(a^2+a^2*sin(f*x+e))/d/f-2*a^2*(c-d)^2*(-A*d+B*c)*arctan((d+c*tan(1/2*f*x+1/2*e))/(c^2-d^2)^(1/2))/d^3/f
/(c^2-d^2)^(1/2)
________________________________________________________________________________________
Rubi [A] time = 0.52, antiderivative size = 171, normalized size of antiderivative = 1.00,
number of steps used = 7, number of rules used = 7, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used =
{2976, 2968, 3023, 2735, 2660, 618, 204} \[ -\frac {2 a^2 (c-d)^2 (B c-A d) \tan ^{-1}\left (\frac {c \tan \left (\frac {1}{2} (e+f x)\right )+d}{\sqrt {c^2-d^2}}\right )}{d^3 f \sqrt {c^2-d^2}}-\frac {a^2 x \left (2 A d (c-2 d)-B \left (2 c^2-4 c d+3 d^2\right )\right )}{2 d^3}+\frac {a^2 (-2 A d+2 B c-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2 \sin (e+f x)+a^2\right )}{2 d f} \]
Antiderivative was successfully verified.
[In]
Int[((a + a*Sin[e + f*x])^2*(A + B*Sin[e + f*x]))/(c + d*Sin[e + f*x]),x]
[Out]
-(a^2*(2*A*(c - 2*d)*d - B*(2*c^2 - 4*c*d + 3*d^2))*x)/(2*d^3) - (2*a^2*(c - d)^2*(B*c - A*d)*ArcTan[(d + c*Ta
n[(e + f*x)/2])/Sqrt[c^2 - d^2]])/(d^3*Sqrt[c^2 - d^2]*f) + (a^2*(2*B*c - 2*A*d - 3*B*d)*Cos[e + f*x])/(2*d^2*
f) - (B*Cos[e + f*x]*(a^2 + a^2*Sin[e + f*x]))/(2*d*f)
Rule 204
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])
Rule 618
Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]
Rule 2660
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(-1), x_Symbol] :> With[{e = FreeFactors[Tan[(c + d*x)/2], x]}, Dis
t[(2*e)/d, Subst[Int[1/(a + 2*b*e*x + a*e^2*x^2), x], x, Tan[(c + d*x)/2]/e], x]] /; FreeQ[{a, b, c, d}, x] &&
NeQ[a^2 - b^2, 0]
Rule 2735
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])/((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(b*x)/d
, x] - Dist[(b*c - a*d)/d, Int[1/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d
, 0]
Rule 2968
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(
e_.) + (f_.)*(x_)]), x_Symbol] :> Int[(a + b*Sin[e + f*x])^m*(A*c + (B*c + A*d)*Sin[e + f*x] + B*d*Sin[e + f*x
]^2), x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0]
Rule 2976
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*B*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])
^(n + 1))/(d*f*(m + n + 1)), x] + Dist[1/(d*(m + n + 1)), Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x]
)^n*Simp[a*A*d*(m + n + 1) + B*(a*c*(m - 1) + b*d*(n + 1)) + (A*b*d*(m + n + 1) - B*(b*c*m - a*d*(2*m + n)))*S
in[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] &&
NeQ[c^2 - d^2, 0] && GtQ[m, 1/2] && !LtQ[n, -1] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])
Rule 3023
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> -Simp[(C*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m + 2)), x] + Dist[1/(b*
(m + 2)), Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x]
, x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^2 (A+B \sin (e+f x))}{c+d \sin (e+f x)} \, dx &=-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}+\frac {\int \frac {(a+a \sin (e+f x)) (a (B c+2 A d)-a (2 B c-2 A d-3 B d) \sin (e+f x))}{c+d \sin (e+f x)} \, dx}{2 d}\\ &=-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}+\frac {\int \frac {a^2 (B c+2 A d)+\left (a^2 (B c+2 A d)-a^2 (2 B c-2 A d-3 B d)\right ) \sin (e+f x)-a^2 (2 B c-2 A d-3 B d) \sin ^2(e+f x)}{c+d \sin (e+f x)} \, dx}{2 d}\\ &=\frac {a^2 (2 B c-2 A d-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}+\frac {\int \frac {a^2 d (B c+2 A d)-a^2 \left (2 A (c-2 d) d-B \left (2 c^2-4 c d+3 d^2\right )\right ) \sin (e+f x)}{c+d \sin (e+f x)} \, dx}{2 d^2}\\ &=-\frac {a^2 \left (2 A (c-2 d) d-B \left (2 c^2-4 c d+3 d^2\right )\right ) x}{2 d^3}+\frac {a^2 (2 B c-2 A d-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}-\frac {\left (a^2 (c-d)^2 (B c-A d)\right ) \int \frac {1}{c+d \sin (e+f x)} \, dx}{d^3}\\ &=-\frac {a^2 \left (2 A (c-2 d) d-B \left (2 c^2-4 c d+3 d^2\right )\right ) x}{2 d^3}+\frac {a^2 (2 B c-2 A d-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}-\frac {\left (2 a^2 (c-d)^2 (B c-A d)\right ) \operatorname {Subst}\left (\int \frac {1}{c+2 d x+c x^2} \, dx,x,\tan \left (\frac {1}{2} (e+f x)\right )\right )}{d^3 f}\\ &=-\frac {a^2 \left (2 A (c-2 d) d-B \left (2 c^2-4 c d+3 d^2\right )\right ) x}{2 d^3}+\frac {a^2 (2 B c-2 A d-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}+\frac {\left (4 a^2 (c-d)^2 (B c-A d)\right ) \operatorname {Subst}\left (\int \frac {1}{-4 \left (c^2-d^2\right )-x^2} \, dx,x,2 d+2 c \tan \left (\frac {1}{2} (e+f x)\right )\right )}{d^3 f}\\ &=-\frac {a^2 \left (2 A (c-2 d) d-B \left (2 c^2-4 c d+3 d^2\right )\right ) x}{2 d^3}-\frac {2 a^2 (c-d)^2 (B c-A d) \tan ^{-1}\left (\frac {d+c \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right )}{d^3 \sqrt {c^2-d^2} f}+\frac {a^2 (2 B c-2 A d-3 B d) \cos (e+f x)}{2 d^2 f}-\frac {B \cos (e+f x) \left (a^2+a^2 \sin (e+f x)\right )}{2 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.62, size = 177, normalized size = 1.04 \[ \frac {a^2 (\sin (e+f x)+1)^2 \left (2 (e+f x) \left (2 A d (2 d-c)+B \left (2 c^2-4 c d+3 d^2\right )\right )-\frac {8 (c-d)^2 (B c-A d) \tan ^{-1}\left (\frac {c \tan \left (\frac {1}{2} (e+f x)\right )+d}{\sqrt {c^2-d^2}}\right )}{\sqrt {c^2-d^2}}-4 d (A d-B c+2 B d) \cos (e+f x)-B d^2 \sin (2 (e+f x))\right )}{4 d^3 f \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^4} \]
Antiderivative was successfully verified.
[In]
Integrate[((a + a*Sin[e + f*x])^2*(A + B*Sin[e + f*x]))/(c + d*Sin[e + f*x]),x]
[Out]
(a^2*(1 + Sin[e + f*x])^2*(2*(2*A*d*(-c + 2*d) + B*(2*c^2 - 4*c*d + 3*d^2))*(e + f*x) - (8*(c - d)^2*(B*c - A*
d)*ArcTan[(d + c*Tan[(e + f*x)/2])/Sqrt[c^2 - d^2]])/Sqrt[c^2 - d^2] - 4*d*(-(B*c) + A*d + 2*B*d)*Cos[e + f*x]
- B*d^2*Sin[2*(e + f*x)]))/(4*d^3*f*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^4)
________________________________________________________________________________________
fricas [A] time = 0.51, size = 452, normalized size = 2.64 \[ \left [-\frac {B a^{2} d^{2} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (2 \, B a^{2} c^{2} - 2 \, {\left (A + 2 \, B\right )} a^{2} c d + {\left (4 \, A + 3 \, B\right )} a^{2} d^{2}\right )} f x + {\left (B a^{2} c^{2} - {\left (A + B\right )} a^{2} c d + A a^{2} d^{2}\right )} \sqrt {-\frac {c - d}{c + d}} \log \left (-\frac {{\left (2 \, c^{2} - d^{2}\right )} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2} - 2 \, {\left ({\left (c^{2} + c d\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sqrt {-\frac {c - d}{c + d}}}{d^{2} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2}}\right ) - 2 \, {\left (B a^{2} c d - {\left (A + 2 \, B\right )} a^{2} d^{2}\right )} \cos \left (f x + e\right )}{2 \, d^{3} f}, -\frac {B a^{2} d^{2} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (2 \, B a^{2} c^{2} - 2 \, {\left (A + 2 \, B\right )} a^{2} c d + {\left (4 \, A + 3 \, B\right )} a^{2} d^{2}\right )} f x - 2 \, {\left (B a^{2} c^{2} - {\left (A + B\right )} a^{2} c d + A a^{2} d^{2}\right )} \sqrt {\frac {c - d}{c + d}} \arctan \left (-\frac {{\left (c \sin \left (f x + e\right ) + d\right )} \sqrt {\frac {c - d}{c + d}}}{{\left (c - d\right )} \cos \left (f x + e\right )}\right ) - 2 \, {\left (B a^{2} c d - {\left (A + 2 \, B\right )} a^{2} d^{2}\right )} \cos \left (f x + e\right )}{2 \, d^{3} f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+a*sin(f*x+e))^2*(A+B*sin(f*x+e))/(c+d*sin(f*x+e)),x, algorithm="fricas")
[Out]
[-1/2*(B*a^2*d^2*cos(f*x + e)*sin(f*x + e) - (2*B*a^2*c^2 - 2*(A + 2*B)*a^2*c*d + (4*A + 3*B)*a^2*d^2)*f*x + (
B*a^2*c^2 - (A + B)*a^2*c*d + A*a^2*d^2)*sqrt(-(c - d)/(c + d))*log(-((2*c^2 - d^2)*cos(f*x + e)^2 - 2*c*d*sin
(f*x + e) - c^2 - d^2 - 2*((c^2 + c*d)*cos(f*x + e)*sin(f*x + e) + (c*d + d^2)*cos(f*x + e))*sqrt(-(c - d)/(c
+ d)))/(d^2*cos(f*x + e)^2 - 2*c*d*sin(f*x + e) - c^2 - d^2)) - 2*(B*a^2*c*d - (A + 2*B)*a^2*d^2)*cos(f*x + e)
)/(d^3*f), -1/2*(B*a^2*d^2*cos(f*x + e)*sin(f*x + e) - (2*B*a^2*c^2 - 2*(A + 2*B)*a^2*c*d + (4*A + 3*B)*a^2*d^
2)*f*x - 2*(B*a^2*c^2 - (A + B)*a^2*c*d + A*a^2*d^2)*sqrt((c - d)/(c + d))*arctan(-(c*sin(f*x + e) + d)*sqrt((
c - d)/(c + d))/((c - d)*cos(f*x + e))) - 2*(B*a^2*c*d - (A + 2*B)*a^2*d^2)*cos(f*x + e))/(d^3*f)]
________________________________________________________________________________________
giac [A] time = 0.19, size = 314, normalized size = 1.84 \[ \frac {\frac {{\left (2 \, B a^{2} c^{2} - 2 \, A a^{2} c d - 4 \, B a^{2} c d + 4 \, A a^{2} d^{2} + 3 \, B a^{2} d^{2}\right )} {\left (f x + e\right )}}{d^{3}} - \frac {4 \, {\left (B a^{2} c^{3} - A a^{2} c^{2} d - 2 \, B a^{2} c^{2} d + 2 \, A a^{2} c d^{2} + B a^{2} c d^{2} - A a^{2} d^{3}\right )} {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\relax (c) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + d}{\sqrt {c^{2} - d^{2}}}\right )\right )}}{\sqrt {c^{2} - d^{2}} d^{3}} + \frac {2 \, {\left (B a^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 2 \, B a^{2} c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 2 \, A a^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 4 \, B a^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - B a^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2 \, B a^{2} c - 2 \, A a^{2} d - 4 \, B a^{2} d\right )}}{{\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1\right )}^{2} d^{2}}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+a*sin(f*x+e))^2*(A+B*sin(f*x+e))/(c+d*sin(f*x+e)),x, algorithm="giac")
[Out]
1/2*((2*B*a^2*c^2 - 2*A*a^2*c*d - 4*B*a^2*c*d + 4*A*a^2*d^2 + 3*B*a^2*d^2)*(f*x + e)/d^3 - 4*(B*a^2*c^3 - A*a^
2*c^2*d - 2*B*a^2*c^2*d + 2*A*a^2*c*d^2 + B*a^2*c*d^2 - A*a^2*d^3)*(pi*floor(1/2*(f*x + e)/pi + 1/2)*sgn(c) +
arctan((c*tan(1/2*f*x + 1/2*e) + d)/sqrt(c^2 - d^2)))/(sqrt(c^2 - d^2)*d^3) + 2*(B*a^2*d*tan(1/2*f*x + 1/2*e)^
3 + 2*B*a^2*c*tan(1/2*f*x + 1/2*e)^2 - 2*A*a^2*d*tan(1/2*f*x + 1/2*e)^2 - 4*B*a^2*d*tan(1/2*f*x + 1/2*e)^2 - B
*a^2*d*tan(1/2*f*x + 1/2*e) + 2*B*a^2*c - 2*A*a^2*d - 4*B*a^2*d)/((tan(1/2*f*x + 1/2*e)^2 + 1)^2*d^2))/f
________________________________________________________________________________________
maple [B] time = 0.43, size = 713, normalized size = 4.17 \[ \frac {2 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) A \,c^{2}}{f \,d^{2} \sqrt {c^{2}-d^{2}}}-\frac {4 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) A c}{f d \sqrt {c^{2}-d^{2}}}+\frac {2 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) A}{f \sqrt {c^{2}-d^{2}}}-\frac {2 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) B \,c^{3}}{f \,d^{3} \sqrt {c^{2}-d^{2}}}+\frac {4 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) B \,c^{2}}{f \,d^{2} \sqrt {c^{2}-d^{2}}}-\frac {2 a^{2} \arctan \left (\frac {2 c \tan \left (\frac {f x}{2}+\frac {e}{2}\right )+2 d}{2 \sqrt {c^{2}-d^{2}}}\right ) B c}{f d \sqrt {c^{2}-d^{2}}}+\frac {a^{2} B \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {2 a^{2} A \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}+\frac {2 a^{2} B \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) c}{f \,d^{2} \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {4 a^{2} B \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {a^{2} B \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {2 a^{2} A}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}+\frac {2 a^{2} B c}{f \,d^{2} \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {4 a^{2} B}{f d \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}-\frac {2 a^{2} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) A c}{f \,d^{2}}+\frac {4 a^{2} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) A}{f d}+\frac {2 a^{2} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) B \,c^{2}}{f \,d^{3}}-\frac {4 a^{2} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) B c}{f \,d^{2}}+\frac {3 a^{2} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) B}{f d} \]
Verification of antiderivative is not curr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)*A*c+4/f*a^2/d*arctan(tan(1/2*f*x+1/2*e))*A+2/f*a^2/d^3*arctan(tan(1/2*f*x+1/2*e))*B*c^2-4/f*a^2/d^2*arctan(t
an(1/2*f*x+1/2*e))*B*c+3/f*a^2/d*arctan(tan(1/2*f*x+1/2*e))*B
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+a*sin(f*x+e))^2*(A+B*sin(f*x+e))/(c+d*sin(f*x+e)),x, algorithm="maxima")
[Out]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(4*d^2-4*c^2>0)', see `assume?`
for more details)Is 4*d^2-4*c^2 positive or negative?
________________________________________________________________________________________
mupad [B] time = 20.07, size = 7371, normalized size = 43.11 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(((A + B*sin(e + f*x))*(a + a*sin(e + f*x))^2)/(c + d*sin(e + f*x)),x)
[Out]
(atan(((((8*(16*A^2*a^4*c^2*d^6 - 16*A^2*a^4*c^3*d^5 + 4*A^2*a^4*c^4*d^4 + 9*B^2*a^4*c^2*d^6 - 24*B^2*a^4*c^3*
d^5 + 28*B^2*a^4*c^4*d^4 - 16*B^2*a^4*c^5*d^3 + 4*B^2*a^4*c^6*d^2 + 24*A*B*a^4*c^2*d^6 - 44*A*B*a^4*c^3*d^5 +
32*A*B*a^4*c^4*d^4 - 8*A*B*a^4*c^5*d^3))/d^5 + ((((32*c^2*d^3 + (8*tan(e/2 + (f*x)/2)*(12*c*d^10 - 8*c^3*d^8))
/d^6)*(B*a^2*c^2*1i + (a^2*d^2*(4*A + 3*B)*1i)/2 - (a^2*d*(2*A*c + 4*B*c)*1i)/2))/d^3 - (8*(8*A*a^2*c*d^8 + 6*
B*a^2*c*d^8 - 8*A*a^2*c^2*d^7 - 8*B*a^2*c^2*d^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^2*c^2*d^7 + 2*B*a^2*c^3*d^6))/d^5 - (8*tan(e/2 + (f*x)/2)*(8*A*a^2*c*d^9
- 16*A*a^2*c^2*d^8 + 8*A*a^2*c^3*d^7 - 8*B*a^2*c^2*d^8 + 16*B*a^2*c^3*d^7 - 8*B*a^2*c^4*d^6))/d^6 + (a^2*(32*
c^2*d^3 + (8*tan(e/2 + (f*x)/2)*(12*c*d^10 - 8*c^3*d^8))/d^6)*(A*d - B*c)*(-(c + d)*(c - d)^3)^(1/2))/(c*d^3 +
d^4)))/(c*d^3 + d^4)))/(c*d^3 + d^4)))*(A*d - B*c)*(-(c + d)*(c - d)^3)^(1/2)*2i)/(f*(c*d^3 + d^4))
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+a*sin(f*x+e))**2*(A+B*sin(f*x+e))/(c+d*sin(f*x+e)),x)
[Out]
Timed out
________________________________________________________________________________________